package com.lswms.modules.lswms.dto.receipt;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 收货
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-06-13
 */
@Data
@ApiModel(value = "收货")
public class ReceiptDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "序号")
	private Long id;

	@ApiModelProperty(value = "收货单号")
	private String receiptkey;

	@ApiModelProperty(value = "单据类型")
	private String type;

	@ApiModelProperty(value = "状态")
	private Integer status;

	@ApiModelProperty(value = "来源单号")
	private String sourcekey;

	@ApiModelProperty(value = "来源单类型")
	private String sourcetype;

	@ApiModelProperty(value = "来源单时间")
	@DateTimeFormat(pattern="yyyy-MM-dd 00:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date sourcedate;

	@ApiModelProperty(value = "供应商号")
	private String companyid;

	@ApiModelProperty(value = "供应商名称")
	private String companyname;

	@ApiModelProperty(value = "联系人")
	private String customer;

	@ApiModelProperty(value = "电话")
	private String phone;

	@ApiModelProperty(value = "地址")
	private String address;

	@ApiModelProperty(value = "关联单据")
	private String relatedorderkey;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "回传状态")
	private String backstatus;

	@ApiModelProperty(value = "回传时间")
	private Date backdate;

	@ApiModelProperty(value = "回传结果")
	private String backresult;

	@ApiModelProperty(value = "回传码")
	private String backcode;

	@ApiModelProperty(value = "仓库")
	private String warehouse;

	@ApiModelProperty(value = "创建人")
    private String adduser;

    @ApiModelProperty(value = "创建时间")
    private Date addtime;

    @ApiModelProperty(value = "更新人")
    private String updatuser;

    @ApiModelProperty(value = "更新时间")
    private Date updatetime;


}
